package com.wisdytech.linkdcs.tool.model;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhanghailin
 * @since 2018-06-08
 */
@TableName("TT_EQ_TOOL_REPLACE_PLAN")
public class ToolReplacePlan extends Model<ToolReplacePlan> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId("PK_ID")
    private String pkId;
    /**
     * 工装编码
     */
    @TableField("TOOL_CODE")
    private String toolCode;
    /**
     * 更换频率
     */
    @TableField("RE_FREQUENCY")
    private String reFrequency;
    /**
     * 异常更换原因
     */
    @TableField("RE_REASON")
    private String reReason;
    /**
     * 作业员人数需求
     */
    @TableField("USER_NUM")
    private String userNum;
    /**
     * 工具需求
     */
    @TableField("TOOL_NEED")
    private String toolNeed;
    @TableField("DEL_FLAG")
    private String delFlag;
    @TableField("CREATE_USER")
    private String createUser;
    @TableField("CREATE_DATE")
    private Date createDate;
    @TableField("UPDATE_USER")
    private String updateUser;
    @TableField("UPDATE_DATE")
    private Date updateDate;
    @TableField("REMARK")
    private String remark;

    @TableField(exist = false)
    private String toolName;

    @TableField(exist = false)
    private String opName;


    public String getPkId() {
        return pkId;
    }

    public void setPkId(String pkId) {
        this.pkId = pkId;
    }

    public String getToolCode() {
        return toolCode;
    }

    public void setToolCode(String toolCode) {
        this.toolCode = toolCode;
    }

    public String getReFrequency() {
        return reFrequency;
    }

    public void setReFrequency(String reFrequency) {
        this.reFrequency = reFrequency;
    }

    public String getReReason() {
        return reReason;
    }

    public void setReReason(String reReason) {
        this.reReason = reReason;
    }

    public String getUserNum() {
        return userNum;
    }

    public void setUserNum(String userNum) {
        this.userNum = userNum;
    }

    public String getToolNeed() {
        return toolNeed;
    }

    public void setToolNeed(String toolNeed) {
        this.toolNeed = toolNeed;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    public String getCreateUser() {
        return createUser;
    }

    public void setCreateUser(String createUser) {
        this.createUser = createUser;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getUpdateUser() {
        return updateUser;
    }

    public void setUpdateUser(String updateUser) {
        this.updateUser = updateUser;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public String getToolName() {
        return toolName;
    }

    public void setToolName(String toolName) {
        this.toolName = toolName;
    }

    public String getOpName() {
        return opName;
    }

    public void setOpName(String opName) {
        this.opName = opName;
    }

    @Override
    protected Serializable pkVal() {
        return this.pkId;
    }

    @Override
    public String toString() {
        return "ToolReplacePlan{" +
        ", pkId=" + pkId +
        ", toolCode=" + toolCode +
        ", reFrequency=" + reFrequency +
        ", reReason=" + reReason +
        ", userNum=" + userNum +
        ", toolNeed=" + toolNeed +
        ", delFlag=" + delFlag +
        ", createUser=" + createUser +
        ", createDate=" + createDate +
        ", updateUser=" + updateUser +
        ", updateDate=" + updateDate +
        ", remark=" + remark +
        "}";
    }
}
